<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    #box {
      width: 200px;
      height: 200px;
      background: salmon;
    }
  </style>
</head>

<body>
  <div id="box">老地方见</div>
  <button>触发box所绑定的点击事件</button>
  <script src="./jquery-3.4.1.min.js"></script>
  <script>
    $("#box").click(function () {
      alert("好呀好呀")
    })

    // 触发box所绑定的点击事件
    $("button").click(function () {
      // 元素.trigger(事件) 
      $("#box").trigger("click");
    })




  </script>
</body>

</html>